/**
 * Created by Administrator on 2017/5/24.
 */

function WebToAndroid() {
    var ss = document.getElementById("input").value;
    demo.toAndroid(ss);
}

function AndroidToWeb(str) {
    document.getElementById("label").innerHTML = str;
}

function showAlert(str) {

    alert(str);
}
function showConfirm(str) {
    var r = confirm(str);
    if (r == true){
        document.getElementById("label").innerHTML = "确定";
        demo.toAndroid(document.getElementById("label").innerHTML);
    }else {
        document.getElementById("label").innerHTML = "取消";
        demo.toAndroid(document.getElementById("label").innerHTML);
    }
}
